package com.taxshare.manager.mapper;

import com.taxshare.manager.entity.UserRoleEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.taxshare.manager.view.dto.UserRoleDTO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @ClassName: UserRoleMapper
 * @Description: 
 * @author luozhongyi
 * @since 2021-01-28
 */
@Mapper
public interface UserRoleMapper extends BaseMapper<UserRoleEntity> {

    /**
     * 批量插入用户角色信息
     * @param list
     * @return
     */
    int insertUserRoleBatch(List<UserRoleDTO> list);

    /**
     * 批量删除用户角色信息
     * @param list
     * @return
     */
    int deleteUserRoleBatch(List<UserRoleDTO> list);
}
